home *** CD-ROM | disk | FTP | other *** search
- Path: ivan.iecc.com!not-for-mail
- From: feb6399@osfmail.isc.rit.edu (Frank Barrus)
- Newsgroups: comp.lang.c++,comp.compilers
- Subject: Re: Parsing C++ headers?
- Date: 18 Apr 1996 00:35:27 -0400
- Organization: Rochester Institute of Technology, Rochester, NY
- Sender: johnl@iecc.com
- Approved: compilers@ivan.iecc.com
- Message-ID: <96-04-108@comp.compilers>
- References: <96-04-033@comp.compilers> <96-04-078@comp.compilers>
- NNTP-Posting-Host: localhost.iecc.com
- Keywords: C++, parse
-
- John Mitchell <104316.1514@CompuServe.COM> writes:
- >I want to parse C++ header files, and extract information about the
- >contained classes and their interface. ...
-
-
- Cleveland A Gibbon <cag@Cs.Nott.AC.UK> wrote:
- >Welcome to your worst nightmare! I have not been able to track down a
- >yacc-able grammar for 2 years. The one you mentioned about is very old
- >and would need a substantial amount of work to include templates.
- >There is a neat C++ grammar that is written in C/C++, hence portable
- >to any platform with a C/C++ compiler.
-
- I've been working on exactly this sort of thing, and although the yacc
- grammer by itself relies on a few tricks, it provides an interface
- class (CParse) that should provide all the info you need to pull out
- class info or to even make a C++ Interpreter or compiler.
-
- Check out my homepage (http://www.csh.rit.edu/~shaggy) in the coming
- months. There's some basic info on it up there right now, but it will
- be about a month before I get the first release available. I'm using
- it as the core for all kinds of things, including dynamic extensions
- to C++ as well as a C++ interpretive command shell.
-
- - Frank
- --
- Frank "Shaggy" Barrus: feb6399@osfmail.isc.rit.edu, shaggy@csh.rit.edu
- http://www.csh.rit.edu/~shaggy
- --
- Send compilers articles to compilers@iecc.com,
- meta-mail to compilers-request@iecc.com.
-